﻿@using EventManager;
@{
    ViewBag.Title = "Events";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var Data = ViewData["events"] as List<EventManager.Models.Event>;
}
<section class="content">
    @foreach (var item in Data)
    {
        <div class="row">
            <div class="objectId">
                @item.Id
            </div>
            <div class="name">
                @item.Name
            </div>
            <div>
                @Html.RouteLink("Details",
                        new { controller = "Events", action = "Details", id = item.Id })
            </div>
        </div>
    }
</section>
